package com.zyy.io;

import java.io.InputStream;

/**
 * @author zyy
 * @date 2020/11/7 5:54 下午
 * @description
 */
public class Resources {

    //根据配置文件路径 将配置文件加载成字节输入流 存储到内存中
    public static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
